package com.shop.cereshop.app.param.index;
import com.shop.cereshop.commons.domain.common.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "SearchParamUpdate", description = "首页商品搜索请求")
public class SearchParamUpdate extends PageParam {
    @ApiModelProperty(value = "搜索内容")
    private  String search;

    @ApiModelProperty(value = "搜索类型,1-商品，2-店铺")
    private Integer searchType;

    @ApiModelProperty(value = "商品类型,1表示到店用,2表示线上商城,3表示同城服务,默认显示全部商品")
    private Integer shopType;

    @ApiModelProperty(value = "排序方式,1表示价格升序,2表示价格降序,,0默认排序,为按照创建时间排序")
    private Integer priceSort;

    @ApiModelProperty(value = "排序方式,1表示销量升序,2表示销量降序,0默认排序默认为按照创建时间排序")
    private Integer saleSort;

    @ApiModelProperty(value = "距离区间范围")
     private Double  distance;

    @ApiModelProperty(value = "用户经纬度")
    String location;

    @ApiModelProperty(value = "用户自定义商品最高价")
    private String userMaxPrice;

    @ApiModelProperty(value = "用户自定义商品最低价")
    private String userMinPrice;

    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    @NotNull
    @ApiModelProperty(value = "市级区域编码",required = true)
    private String cityCode;


    @ApiModelProperty(value = "1表示全天,0表示否")
    private Integer allDays;

    @ApiModelProperty(value = "商品二级分类id")
    private Integer classifyId2;

    @ApiModelProperty(value = "商品三级分类id")
    private Integer classifyId3;







}
